﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EnvironSystem
{
    public class EnvironmentSystemFacade : Singleton<EnvironmentSystemFacade>, IEnvironmentManager
    {
        private IEnvironmentManager manager = new EnvironmentManager();

        public void Init()
        {
            manager.Init();
        }

        public object Create(int id, string tag)
        {
            return manager.Create(id, tag);
        }

        public IEnvironmentElement[] GetElementsInArea(AreaType type, IAreaArgs args)
        {
            return manager.GetElementsInArea(type, args);
        }

        public void RegisterElement(int id,IEnvironmentElement element)
        {
            manager.RegisterElement(id, element);
        }

        public void RegisterSpawn(int id, ISpawn spawn)
        {
            manager.RegisterSpawn(id, spawn);
        }

        public void RemoveElement(int id, IEnvironmentElement element)
        {
            manager.RemoveElement(id, element);
        }

        public void RemoveSpawn(int id, ISpawn spawn)
        {
            manager.RemoveSpawn(id, spawn);
        }
    }
}
